package org.jeecg.modules.demo.memberwithdrawrecord.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.memberwithdrawrecord.entity.MemberWithdrawRecord;

import java.util.List;

/**
 * @Description: 股东提现管理
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
public interface IMemberWithdrawRecordService extends IService<MemberWithdrawRecord> {
    /**
     * 修改审核状态
     *
     * @param status
     * @param id
     */
    void updateStatus(String status, String id);

    /**
     * 查询提现待审核数量
     *
     * @return
     */
    String getWithdrawalToReview(String storeId);

    /**
     * 查询可提现金额
     *
     * @return
     */
    String getCanWithdrawalAmount(String storeId, String stockId);

    /**
     * 查询提现记录
     *
     * @param storeId
     * @param memberId
     * @return
     */
    List<MemberWithdrawRecord> getWidthManagmentList(@Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize, @Param("storeId") String storeId, @Param("memberId") String memberId);

}
